<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<p align="center"  class="errortext">
	<bean:message key="error.no.permission"/><br>
</p>
<table align="center">
	<tr>
          <td align="center" valign="top">
          	<logic:present name="custom_exception">
    			<table border="0" cellspacing="1" cellpadding="0" bgcolor="#cacaca" width="300" align="center">
    				<tr bgcolor="#FFFFFF">
    					<td class="etiqueta"><bean:message key="error.code"/></td>
    					<td class="etiqueta_campo"><bean:write name="custom_exception" property="exceptionCode"/></td>
    				</tr>
    				<tr bgcolor="#FFFFFF">
    					<td class="etiqueta"><bean:message key="error.description"/>:</td>
    					<td class="etiqueta_campo"><bean:write name="custom_exception" property="message"/></td>
    				</tr>
    			</table>
   		  	   </logic:present>
   		  	   <br/>
   		  	   <logic:present name="user">
   		  	   	<html:link action="welcome"><bean:message key="menu.main"/></html:link>
   		  	   </logic:present>
   		  	   <logic:notPresent name="user">
   		  	   	<html:link action="main"><bean:message key="menu.main"/></html:link>
   		  	   </logic:notPresent>
			</td>
    </tr>
</table>
<% session.removeAttribute("custom_exception"); %>